package dao;

import dao.domain.Client;

import java.sql.SQLException;

/**
 * @author huangzhiyang
 * @Date 2023/11/7
 * @Description
 */
public interface ClientDao {
    /**
     * 储存一个client对象到数据库
     *
     * @param client 被操作对象
     * @throws SQLException 数据库异常
     */
    void save(Client client) throws SQLException;

    /**
     * 更新client
     *
     * @param client 更新对象
     * @throws SQLException 数据库异常
     */
    void update(Client client) throws SQLException;
}
